<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图书管理系统</title>
    <link rel="stylesheet" href="/www/css/style.css">
    <script src="/www/js/jquery1.11.0.min.js"></script>
    <script src="/www/js/template-web.js"></script>
    <!-- <script src="/www/layer/layer.js"></script> -->
    <script src="/www/js/index.js"></script>
    <script type="text/template" id="indexTpl">
        {{each list}}
        <tr>
            <td>{{$value.id}}</td>
            <td>{{$value.name}}</td>
            <td>{{$value.author}}</td>
            <td>{{$value.category}}</td>
            <td>{{$value.desc}}</td>
            <td><a href="/toEditBook?id={{$value.id}}">修改</a>|<a href="/delBook?id={{$value.id}}">删除</a></td>
        </tr>
        {{/each}}
    </script>
</head>
<body>
    <div class="title">图书管理系统 <a id="id_addBook" href="javascript:;">添加图书</a> </div>
    <div class="content">
        <table cellpadding="0" cellspacing="0">
            <thead>
                <th>编号</th>
                <th>名称</th>
                <th>作者</th>
                <th>分类</th>
                <th>描述</th>
                <th>操作</th>
            </thead>
            <tbody id="dataList">
            </tbody>
        </table>
    </div>
</body>
</html>